package com.ly.cloud.mapper;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.ly.cloud.dto.DepartmentDto;
import com.ly.cloud.entity.DepartmentPo;
import com.ly.cloud.vo.DepartmentVo;
import com.ly.cloud.vo.DeptTypeSelectVo;
import com.ly.cloud.vo.TeachDepVo;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @Description:
* @Author: pengshiqing
* @CreateDate: 2018/12/19
*/
@Mapper
public interface DepartmentMapper extends BaseMapper<DepartmentPo> {

    //分页+条件查询
    List<DepartmentVo> selectPage(@Param("page") Pagination page, @Param("id")String id , @Param("dto") DepartmentDto dto);

    List<TeachDepVo > findAllDepartment(@Param("id") String id);

	List<TeachDepVo> findTeachDep();

	//查询所有单位类别(下拉通用)
    List<DeptTypeSelectVo> findDepType();

    int checkedDepID(@Param("depId") String depId);



}